import axios from '@/libs/request/axios'
// 获取一级区域
export const initDevelopRegion = (id, params) => {
    return axios.request({
        url: `/channel/developRegion/getByParentId/${id}`,
        params: params,
        method: 'post'
    })
}
// 加载区域子级数据
export const loadDevelopRegion = (id, params) => {
    return axios.request({
        url: `/channel/developRegion/getByParentId/${id}`,
        params: params,
        method: 'post'
    })
}
// 添加区域
export const addDevelopRegion = (params) => {
    return axios.request({
        url: '/channel/developRegion/add',
        data: params,
        method: 'post'
    })
}
// 编辑区域
export const editDevelopRegion = (params) => {
    return axios.request({
        url: '/channel/developRegion/edit',
        data: params,
        method: 'post'
    })
}
// 删除区域
export const deleteDevelopRegion = (ids, params) => {
    return axios.request({
        url: `/channel/developRegion/delByIds/${ids}`,
        params: params,
        method: 'delete'
    })
}
// 搜索区域
export const searchDevelopRegion = (params) => {
    return axios.request({
        url: '/channel/developRegion/search',
        params: params,
        method: 'post'
    })
}
